<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2023-06-05
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      //Map<String, String[]> parameterMap = request.getParameterMap();
      request.setCharacterEncoding("utf-8");
      String name=request.getParameter("uname");
      int age=Integer.parseInt(request.getParameter("age"));
      String phone=request.getParameter("phone");
      String g[]=request.getParameterValues("guanxin");
      String ip=request.getRemoteHost();
  %>
<h3>
    您的用户名是:<%=name%>
</h3>
  <h3>
      您的shouji名是:<%=phone%>
  </h3>
  <h3>
      您的年龄是:<%=age%>
  </h3>
  <h3>
      您的ip是:<%=ip%>
  </h3>
<h4>
    <%
        for (int i = 0; g!=null && i <g.length ; i++) {
            out.print(g[i]+" ");
        }
    %>
</h4>
</body>
</html>
